package com.ljc.mapper;

import com.ljc.entity.FollowingGroup;

import java.util.List;


public interface FollowingGroupMapper {
    /**
     * 通过类型获得分组
     */
    FollowingGroup getByType(String type);

    /**
     * 通过id获得分组
     */
    FollowingGroup getById(Long id);

    /**
     * 查询当前用户的所有关注分组
     */
    List<FollowingGroup> getByUserId(Long userId);

    /**
     * 新建用户关注分组
     */
    Integer addFollowingGroup(FollowingGroup followingGroup);

    /**
     * 获取用户关注分组
     */
    List<FollowingGroup> getUserFollowingGroups(Long userId);
}
